<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="root">
        <h1>今天天气很{{fullName}}</h1>
        <button @click="changClick">qihuan</button>
    </div>
    <script src="../js/vue.js"></script>
    <script>
        const vm = new Vue({
            el: "#root",
            data() {
                return {
                    ishot: true,
                    i:0
                }
            },
            computed: {
                fullName(){
                    return this.ishot ? '炎热':'凉爽'
                }
            },
            methods: {
                changClick(){
                    this.ishot = !this.ishot
                    this.i++
                }
            },

        })
    </script>
</body>
</html>